package com.bbs.detai1713.dao;

import com.bbs.detai1713.dao.entity.TFavorite;
import com.bbs.detai1713.dao.entity.TFavoriteList;
import com.bbs.detai1713.model.AddFavorite;
import com.bbs.detai1713.model.RemoveFavorite;
import com.bbs.detai1713.model.SelectFavorite;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface FavoriteMapper {
    int addFavorite(AddFavorite addFavorite);

    int removeFavorite(RemoveFavorite removeFavorite);

    List<TFavoriteList> selectFavorite(SelectFavorite selectFavorite);

    List<TFavorite> selectFavoriteByPostingId(long userId, long postingId);

}
